package top.lilele.adminSystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

/**
 * @author lilele
 */
@TableName(value = "admin_meet_minutes")
@Data
public class AdminMeetMinutesEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 标题
     */
    @NotEmpty(message = "会议纪要标题不能为空")
    @Length(max = 30, message = "会议纪要标题限制30个字符")
    @TableField(value = "title")
    private String title;

    /**
     * 类型
     */
    @Length(max = 2000, message = "会议纪要标题限制2000个字符")
    @TableField(value = "content")
    private String content;

    @NotEmpty(message = "项目id不能为空")
    @TableField(value = "projectId")
    private String projectId;

    /**
     * 创建人id
     */
    @TableField(value = "createdId")
    private String createdId;

    /**
     * 更新人id
     */
    @TableField(value = "updatedId")
    private String updatedId;

    @TableField(value = "createdTime", fill = FieldFill.INSERT)
    private Date createdTime;
    @TableField(value = "updatedTime", fill = FieldFill.UPDATE)
    private Date updatedTime;
}
